<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet"
	href="${pageContext.request.contextPath }/statics/css/sapar.css" />
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath }/statics/css/common.css" />
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath }/statics/css/bootstrap.min.css" />
<script type="text/javascript"
	src="${pageContext.request.contextPath }/statics/js/jquery.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath }/statics/js/sapar.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath }/statics/js/WdatePicker.js"></script>
<script type="text/javascript">
	$('select').iSelect();
	$(function() {
		$('.modal').modal();
	});
</script>
<title>修改供应商</title>
</head>
<body>
	<div id="saper-container">
		<div id="saper-hd"></div>
		<div id="saper-bd">
			<div class="subfiled clearfix">
				<h2>修改供应商</h2>
			</div>
			<a href="#mymodal2" data-toggle="modal" class="btn btn-primary">新增供应商明细</a>
		</div>
	</div>
	<div id="saper-ft"></div>

	<!--弹出的模态框-->
	<div id="mymodal2" class="modal fade">
		<!-- modal固定布局，上下左右都是0表示充满全屏，支持移动设备上使用触摸方式进行滚动。。-->
		<div class="modal-dialog modal-lg">
			<!-- modal-dialog默认相对定位，自适应宽度，大于768px时宽度600，居中-->
			<div class="modal-content">
				<form action="${pageContext.request.contextPath }/updateSupplier.do"
					method="post" enctype="multipart/form-data">
					<!-- modal-content模态框的边框、边距、背景色、阴影效果。-->
					<div class="modal-header">
						<button class="close" data-dismiss="modal">&times;</button>
						<center>
							<h3 class="modal-title">新增供应商明细</h3>
						</center>
					</div>
					<div class="media-body">
						<div class="addjiejidan">
							<center>
								<input type="hidden" name="supplier_id"
									value="${supplier.supplier_id}" id="supplier_id" />
								<table bordercolor="lightgray" border="2">
									<tr align="right">
										<td>供应商名称</td>
										<td><input type="text" class="form-control"
											name="supplier_name" value="${supplier.supplier_name}" /></td>
									</tr>
									<tr align="right">
										<td>供应商类别</td>
										<td><select class="form-control" name="suppliertype_id">
												<option value="1"
													<c:if test="${supplier.suppliertype_id eq 1}"> selected=selected</c:if>>配件供应商</option>
												<option value="2"
													<c:if test="${supplier.suppliertype_id eq 2}"> selected=selected</c:if>>其他供应商</option>
										</select></td>
									</tr>
									<tr align="right">
										<td>供应商地址</td>
										<td colspan="4"><input type="text" class="form-control"
											name="supplier_address" value="${supplier.supplier_address}" /></td>
									</tr>
									<tr>
										<td>联系电话</td>
										<td><input type="text" class="form-control"
											name="supplier_telephone"
											value="${supplier.supplier_telephone}" /></td>
									</tr>
									<tr>
										<td>开户人</td>
										<td><input type="text" class="form-control"
											name="account_name" value="${supplier.account_name}" /></td>
										<td>开户银行</td>
										<td><input type="text" class="form-control"
											name="supplier_bank" value="${supplier.supplier_bank}" /></td>
									</tr>
									<tr>
										<td>银行账号</td>
										<td><input type="text" class="form-control"
											name="supplier_account" value="${supplier.supplier_account}" /></td>
									</tr>
									<tr>
										<td>供应商状态</td>
										<td><select class="form-control" name="supplier_status">
												<option value="-1">请选择</option>
												<option value="0"
													<c:if test="${supplier.supplier_status eq 0}"> selected=selected</c:if>>启用</option>
												<option value="1"
													<c:if test="${supplier.supplier_status eq 1}"> selected=selected</c:if>>禁用</option>
										</select></td>
									</tr>
								</table>
							</center>
						</div>
					</div>
					<div class="modal-footer">
						<button class="btn btn-default" data-dismiss="modal">关闭</button>
						<input type="submit" value="修改" />
					</div>
				</form>
			</div>
		</div>
	</div>
	<script type="text/javascript"
		src='${pageContext.request.contextPath }/statics/js/jquery-1.12.4.js'></script>
	<script type="text/javascript"
		src='${pageContext.request.contextPath }/statics/js/bootstrap.js'></script>
</body>
</html>